# -*- coding: utf-8 -*-

from django import forms

class RegisterForm(forms.Form):
    username = forms.CharField(
            label=u'用户名',
            widget=forms.TextInput(attrs={'value':u'用户名，必填'}),
            max_length=16,
            required=False
            )
    #city   = forms.CharField(
    #        label=u'城市',
    #        max_length=16,
    #        required=False
    #        )
    #avatar = forms.ImageField(
    #        label=u'头像',
    #        widget=forms.FileInput(attrs={'size':16}),
    #        )
    latitude = forms.CharField(
            widget=forms.HiddenInput()
            )
    longitude = forms.CharField(
            widget=forms.HiddenInput()
            )                                  
    password = forms.CharField(
            label=u'密码',
            widget=forms.PasswordInput(attrs={'value':u'密码，必填'}),
            required=False
            )
    email = forms.EmailField(
            widget=forms.TextInput(attrs={'value':u'电子邮件，看你喜欢了'}),
            label=u'电子邮件',
            required=False
            )
    #password2 = forms.CharField(
    #        label=u'确认密码',
    #        widget=forms.PasswordInput(),
    #        required=False
    #        )

class SignInForm(forms.Form):
    signin_username = forms.CharField(
        label=u'用户名',
        max_length=16,
        required=True
        )
    signin_password = forms.CharField(
        label=u'密码',
        widget=forms.PasswordInput(),
        required=True
        )

